package com.sinosoft.vaccinetoai.server.business.chatchainrecord.getchatchainrecordlist.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatchainrecord.getchatchainrecordlist.io.GetChatChainRecordListIO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.getchatchainrecordlist.vo.GetChatChainRecordListVO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.getchatchainrecordlist.service.IGetChatChainRecordListService;

/**
 * @ClassName: GetChatChainRecordListController
 * @ClassNameExplain: 
 * @Description: 用户聊天链历史列表查询接口
 * @author xiazhihao
 * @date 2023年12月18日 22:20
 */
@RestController("GetChatChainRecordListController")
@RequestMapping("/chatChainRecord")
public class GetChatChainRecordListController {
	
	@Autowired
	@Qualifier("GetChatChainRecordListService")
	IGetChatChainRecordListService getChatChainRecordListService;
	
	/**
	 * @Title: getChatChainRecordList
	 * @TitleExplain: 
	 * @Description: 用户聊天链历史列表查询接口方法
	 * @param getChatChainRecordListIO 入参
	 * @return GetChatChainRecordListVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/list")
	public GetChatChainRecordListVO getChatChainRecordList(@Valid @RequestBody GetChatChainRecordListIO getChatChainRecordListIO) throws Exception {
		return getChatChainRecordListService.getChatChainRecordList(getChatChainRecordListIO);
	}
	
}
